
package com.fis.mca.language2;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.4.1
 * 2012-03-16T16:14:40.682+07:00
 * Generated source version: 2.4.1
 * 
 */
public final class LanguageTransferer2_LanguageTransferer2Port_Client {

    private static final QName SERVICE_NAME = new QName("http://language2.mca.fis.com/", "LanguageTransferer2Service");

    private LanguageTransferer2_LanguageTransferer2Port_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = LanguageTransferer2Service.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        LanguageTransferer2Service ss = new LanguageTransferer2Service(wsdlURL, SERVICE_NAME);
        LanguageTransferer2 port = ss.getLanguageTransferer2Port();  
        
        {
        System.out.println("Invoking deleteLanguage...");
        com.fis.mca.persistence.McaLanguage2 _deleteLanguage_arg0 = new com.fis.mca.persistence.McaLanguage2();
        _deleteLanguage_arg0.setCode("Code-962807643");
        _deleteLanguage_arg0.setIsDefault("IsDefault1064937500");
        _deleteLanguage_arg0.setLanguageId(-464642486);
        java.util.List<java.lang.Object> _deleteLanguage_arg0McaMailLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _deleteLanguage_arg0McaMailLogsVal1 = null;
        _deleteLanguage_arg0McaMailLogs.add(_deleteLanguage_arg0McaMailLogsVal1);
        _deleteLanguage_arg0.getMcaMailLogs().addAll(_deleteLanguage_arg0McaMailLogs);
        java.util.List<java.lang.Object> _deleteLanguage_arg0McaMessageContents = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _deleteLanguage_arg0McaMessageContentsVal1 = null;
        _deleteLanguage_arg0McaMessageContents.add(_deleteLanguage_arg0McaMessageContentsVal1);
        _deleteLanguage_arg0.getMcaMessageContents().addAll(_deleteLanguage_arg0McaMessageContents);
        java.util.List<java.lang.Object> _deleteLanguage_arg0McaSmsLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _deleteLanguage_arg0McaSmsLogsVal1 = null;
        _deleteLanguage_arg0McaSmsLogs.add(_deleteLanguage_arg0McaSmsLogsVal1);
        _deleteLanguage_arg0.getMcaSmsLogs().addAll(_deleteLanguage_arg0McaSmsLogs);
        java.util.List<java.lang.Object> _deleteLanguage_arg0McaSubscribers = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _deleteLanguage_arg0McaSubscribersVal1 = null;
        _deleteLanguage_arg0McaSubscribers.add(_deleteLanguage_arg0McaSubscribersVal1);
        _deleteLanguage_arg0.getMcaSubscribers().addAll(_deleteLanguage_arg0McaSubscribers);
        _deleteLanguage_arg0.setName("Name1385893441");
        _deleteLanguage_arg0.setStatus("Status-2073753728");
        try {
            port.deleteLanguage(_deleteLanguage_arg0);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking findAllLanguages...");
        try {
            java.util.List<com.fis.mca.persistence.McaLanguage2> _findAllLanguages__return = port.findAllLanguages();
            System.out.println("findAllLanguages.result=" + _findAllLanguages__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking countAll...");
        int _countAll__return = port.countAll();
        System.out.println("countAll.result=" + _countAll__return);


        }
        {
        System.out.println("Invoking findLanguageByStatus...");
        java.lang.String _findLanguageByStatus_arg0 = "_findLanguageByStatus_arg01955132877";
        try {
            java.util.List<com.fis.mca.persistence.McaLanguage2> _findLanguageByStatus__return = port.findLanguageByStatus(_findLanguageByStatus_arg0);
            System.out.println("findLanguageByStatus.result=" + _findLanguageByStatus__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking findAllLanguageStatus...");
        try {
            java.util.List<com.fis.mca.persistence.McaLanguage2> _findAllLanguageStatus__return = port.findAllLanguageStatus();
            System.out.println("findAllLanguageStatus.result=" + _findAllLanguageStatus__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking deleteAllLanguage...");
        try {
            port.deleteAllLanguage();

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking countLanguage...");
        com.fis.mca.persistence.McaLanguage2 _countLanguage_arg0 = new com.fis.mca.persistence.McaLanguage2();
        _countLanguage_arg0.setCode("Code974149793");
        _countLanguage_arg0.setIsDefault("IsDefault-971329757");
        _countLanguage_arg0.setLanguageId(-1507920568);
        java.util.List<java.lang.Object> _countLanguage_arg0McaMailLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _countLanguage_arg0McaMailLogsVal1 = null;
        _countLanguage_arg0McaMailLogs.add(_countLanguage_arg0McaMailLogsVal1);
        _countLanguage_arg0.getMcaMailLogs().addAll(_countLanguage_arg0McaMailLogs);
        java.util.List<java.lang.Object> _countLanguage_arg0McaMessageContents = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _countLanguage_arg0McaMessageContentsVal1 = null;
        _countLanguage_arg0McaMessageContents.add(_countLanguage_arg0McaMessageContentsVal1);
        _countLanguage_arg0.getMcaMessageContents().addAll(_countLanguage_arg0McaMessageContents);
        java.util.List<java.lang.Object> _countLanguage_arg0McaSmsLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _countLanguage_arg0McaSmsLogsVal1 = null;
        _countLanguage_arg0McaSmsLogs.add(_countLanguage_arg0McaSmsLogsVal1);
        _countLanguage_arg0.getMcaSmsLogs().addAll(_countLanguage_arg0McaSmsLogs);
        java.util.List<java.lang.Object> _countLanguage_arg0McaSubscribers = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _countLanguage_arg0McaSubscribersVal1 = null;
        _countLanguage_arg0McaSubscribers.add(_countLanguage_arg0McaSubscribersVal1);
        _countLanguage_arg0.getMcaSubscribers().addAll(_countLanguage_arg0McaSubscribers);
        _countLanguage_arg0.setName("Name-1052114612");
        _countLanguage_arg0.setStatus("Status1492611204");
        int _countLanguage__return = port.countLanguage(_countLanguage_arg0);
        System.out.println("countLanguage.result=" + _countLanguage__return);


        }
        {
        System.out.println("Invoking addLanguage...");
        com.fis.mca.persistence.McaLanguage2 _addLanguage_arg0 = new com.fis.mca.persistence.McaLanguage2();
        _addLanguage_arg0.setCode("Code-106999359");
        _addLanguage_arg0.setIsDefault("IsDefault1356689488");
        _addLanguage_arg0.setLanguageId(1526197040);
        java.util.List<java.lang.Object> _addLanguage_arg0McaMailLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _addLanguage_arg0McaMailLogsVal1 = null;
        _addLanguage_arg0McaMailLogs.add(_addLanguage_arg0McaMailLogsVal1);
        _addLanguage_arg0.getMcaMailLogs().addAll(_addLanguage_arg0McaMailLogs);
        java.util.List<java.lang.Object> _addLanguage_arg0McaMessageContents = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _addLanguage_arg0McaMessageContentsVal1 = null;
        _addLanguage_arg0McaMessageContents.add(_addLanguage_arg0McaMessageContentsVal1);
        _addLanguage_arg0.getMcaMessageContents().addAll(_addLanguage_arg0McaMessageContents);
        java.util.List<java.lang.Object> _addLanguage_arg0McaSmsLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _addLanguage_arg0McaSmsLogsVal1 = null;
        _addLanguage_arg0McaSmsLogs.add(_addLanguage_arg0McaSmsLogsVal1);
        _addLanguage_arg0.getMcaSmsLogs().addAll(_addLanguage_arg0McaSmsLogs);
        java.util.List<java.lang.Object> _addLanguage_arg0McaSubscribers = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _addLanguage_arg0McaSubscribersVal1 = null;
        _addLanguage_arg0McaSubscribers.add(_addLanguage_arg0McaSubscribersVal1);
        _addLanguage_arg0.getMcaSubscribers().addAll(_addLanguage_arg0McaSubscribers);
        _addLanguage_arg0.setName("Name-1208617210");
        _addLanguage_arg0.setStatus("Status1910026852");
        try {
            int _addLanguage__return = port.addLanguage(_addLanguage_arg0);
            System.out.println("addLanguage.result=" + _addLanguage__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking checkReferences...");
        java.lang.Integer _checkReferences_arg0 = Integer.valueOf(41170663);
        try {
            boolean _checkReferences__return = port.checkReferences(_checkReferences_arg0);
            System.out.println("checkReferences.result=" + _checkReferences__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking updateAllLanguage...");
        com.fis.mca.persistence.McaLanguage2 _updateAllLanguage_arg0 = new com.fis.mca.persistence.McaLanguage2();
        _updateAllLanguage_arg0.setCode("Code-1694019408");
        _updateAllLanguage_arg0.setIsDefault("IsDefault-72644876");
        _updateAllLanguage_arg0.setLanguageId(922807696);
        java.util.List<java.lang.Object> _updateAllLanguage_arg0McaMailLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateAllLanguage_arg0McaMailLogsVal1 = null;
        _updateAllLanguage_arg0McaMailLogs.add(_updateAllLanguage_arg0McaMailLogsVal1);
        _updateAllLanguage_arg0.getMcaMailLogs().addAll(_updateAllLanguage_arg0McaMailLogs);
        java.util.List<java.lang.Object> _updateAllLanguage_arg0McaMessageContents = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateAllLanguage_arg0McaMessageContentsVal1 = null;
        _updateAllLanguage_arg0McaMessageContents.add(_updateAllLanguage_arg0McaMessageContentsVal1);
        _updateAllLanguage_arg0.getMcaMessageContents().addAll(_updateAllLanguage_arg0McaMessageContents);
        java.util.List<java.lang.Object> _updateAllLanguage_arg0McaSmsLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateAllLanguage_arg0McaSmsLogsVal1 = null;
        _updateAllLanguage_arg0McaSmsLogs.add(_updateAllLanguage_arg0McaSmsLogsVal1);
        _updateAllLanguage_arg0.getMcaSmsLogs().addAll(_updateAllLanguage_arg0McaSmsLogs);
        java.util.List<java.lang.Object> _updateAllLanguage_arg0McaSubscribers = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateAllLanguage_arg0McaSubscribersVal1 = null;
        _updateAllLanguage_arg0McaSubscribers.add(_updateAllLanguage_arg0McaSubscribersVal1);
        _updateAllLanguage_arg0.getMcaSubscribers().addAll(_updateAllLanguage_arg0McaSubscribers);
        _updateAllLanguage_arg0.setName("Name105469352");
        _updateAllLanguage_arg0.setStatus("Status1095273829");
        java.lang.String _updateAllLanguage_arg1 = "_updateAllLanguage_arg12126568781";
        java.lang.String _updateAllLanguage_arg2 = "_updateAllLanguage_arg2-990174872";
        try {
            port.updateAllLanguage(_updateAllLanguage_arg0, _updateAllLanguage_arg1, _updateAllLanguage_arg2);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking updateLanguage...");
        com.fis.mca.persistence.McaLanguage2 _updateLanguage_arg0 = new com.fis.mca.persistence.McaLanguage2();
        _updateLanguage_arg0.setCode("Code-1215318257");
        _updateLanguage_arg0.setIsDefault("IsDefault-129641133");
        _updateLanguage_arg0.setLanguageId(-1391950606);
        java.util.List<java.lang.Object> _updateLanguage_arg0McaMailLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateLanguage_arg0McaMailLogsVal1 = null;
        _updateLanguage_arg0McaMailLogs.add(_updateLanguage_arg0McaMailLogsVal1);
        _updateLanguage_arg0.getMcaMailLogs().addAll(_updateLanguage_arg0McaMailLogs);
        java.util.List<java.lang.Object> _updateLanguage_arg0McaMessageContents = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateLanguage_arg0McaMessageContentsVal1 = null;
        _updateLanguage_arg0McaMessageContents.add(_updateLanguage_arg0McaMessageContentsVal1);
        _updateLanguage_arg0.getMcaMessageContents().addAll(_updateLanguage_arg0McaMessageContents);
        java.util.List<java.lang.Object> _updateLanguage_arg0McaSmsLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateLanguage_arg0McaSmsLogsVal1 = null;
        _updateLanguage_arg0McaSmsLogs.add(_updateLanguage_arg0McaSmsLogsVal1);
        _updateLanguage_arg0.getMcaSmsLogs().addAll(_updateLanguage_arg0McaSmsLogs);
        java.util.List<java.lang.Object> _updateLanguage_arg0McaSubscribers = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _updateLanguage_arg0McaSubscribersVal1 = null;
        _updateLanguage_arg0McaSubscribers.add(_updateLanguage_arg0McaSubscribersVal1);
        _updateLanguage_arg0.getMcaSubscribers().addAll(_updateLanguage_arg0McaSubscribers);
        _updateLanguage_arg0.setName("Name-1804582576");
        _updateLanguage_arg0.setStatus("Status467834960");
        try {
            port.updateLanguage(_updateLanguage_arg0);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking searchLanguage...");
        com.fis.mca.persistence.McaLanguage2 _searchLanguage_arg0 = new com.fis.mca.persistence.McaLanguage2();
        _searchLanguage_arg0.setCode("Code1608149801");
        _searchLanguage_arg0.setIsDefault("IsDefault1599211929");
        _searchLanguage_arg0.setLanguageId(-2072838188);
        java.util.List<java.lang.Object> _searchLanguage_arg0McaMailLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _searchLanguage_arg0McaMailLogsVal1 = null;
        _searchLanguage_arg0McaMailLogs.add(_searchLanguage_arg0McaMailLogsVal1);
        _searchLanguage_arg0.getMcaMailLogs().addAll(_searchLanguage_arg0McaMailLogs);
        java.util.List<java.lang.Object> _searchLanguage_arg0McaMessageContents = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _searchLanguage_arg0McaMessageContentsVal1 = null;
        _searchLanguage_arg0McaMessageContents.add(_searchLanguage_arg0McaMessageContentsVal1);
        _searchLanguage_arg0.getMcaMessageContents().addAll(_searchLanguage_arg0McaMessageContents);
        java.util.List<java.lang.Object> _searchLanguage_arg0McaSmsLogs = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _searchLanguage_arg0McaSmsLogsVal1 = null;
        _searchLanguage_arg0McaSmsLogs.add(_searchLanguage_arg0McaSmsLogsVal1);
        _searchLanguage_arg0.getMcaSmsLogs().addAll(_searchLanguage_arg0McaSmsLogs);
        java.util.List<java.lang.Object> _searchLanguage_arg0McaSubscribers = new java.util.ArrayList<java.lang.Object>();
        java.lang.Object _searchLanguage_arg0McaSubscribersVal1 = null;
        _searchLanguage_arg0McaSubscribers.add(_searchLanguage_arg0McaSubscribersVal1);
        _searchLanguage_arg0.getMcaSubscribers().addAll(_searchLanguage_arg0McaSubscribers);
        _searchLanguage_arg0.setName("Name2019751779");
        _searchLanguage_arg0.setStatus("Status-837781816");
        try {
            boolean _searchLanguage__return = port.searchLanguage(_searchLanguage_arg0);
            System.out.println("searchLanguage.result=" + _searchLanguage__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }

        System.exit(0);
    }

}
